using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class pages_CheckoutFacilityBooking : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //This page will get session variable 'f_booking' which is published by FacilityBooking page
        FacilityBooking fb = Session["f_booking"] as FacilityBooking;
        User user = Session["user"] as User;
        if (fb == null) return;
        lblCustomerName.Text = user.PersonInfor.FirstName + " " + user.PersonInfor.LastName;
        lblEmail.Text = user.PersonInfor.Email;
        lblAddress.Text = user.PersonInfor.Address;
        lblPhone.Text = user.PersonInfor.Phone;
        lblFacility.Text = fb.Facility.Name;
        lblPrice.Text =Convert.ToString(fb.Price * fb.Quantity);
        lblQuantity.Text = fb.Quantity.ToString();
        lblDuring.Text = fb.During.ToString();        
        lblRendate.Text = fb.RentTime.ToShortDateString();
        lblModifiedDate.Text = fb.ModifiedDate.ToString("MMM, dd yyyy - hh:mm");
    }
}
